//
//  NumberTools.m
//  TheRicher
//
//  Created by 李晓东 on 2018/2/9.
//  Copyright © 2018年 PeanutXu. All rights reserved.
//

#import "NumberTools.h"

@implementation NumberTools


- (BOOL)judgaNeedHandleObj:(ShuangSeQiu *)shuangSeQiu andCondition:(NSString *)type{
    if (type != nil) {
        [shuangSeQiu setKillingNumber:type];
        
        return YES;
    }
    [_needHandleObjs addObject:shuangSeQiu];
    return NO;
}

- (void)callDelegate{
    
    if (_needHandleObjs.count > 0 && [self.delegate respondsToSelector:@selector(resultNeedToInsertKillingDatabase:)]) {
        [self.delegate resultNeedToInsertKillingDatabase:_needHandleObjs];
    }
}

@end
